package com.laoli.myspringboottest.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.laoli.myspringboottest.dto.CreateBDto;
import com.laoli.myspringboottest.entity.TableB;
import com.laoli.myspringboottest.service.TableBService;
import com.laoli.myspringboottest.mapper.TableBMapper;
import org.springframework.stereotype.Service;

/**
* @author iamli
* @description 针对表【table_b】的数据库操作Service实现
* @createDate 2022-04-27 16:24:47
*/
@Service
public class TableBServiceImpl extends ServiceImpl<TableBMapper, TableB>
    implements TableBService{

    @Override
    public void createEnumTest(CreateBDto dto) {
        TableB tb = new TableB();

        BeanUtil.copyProperties(dto, tb);

        System.out.println(tb.toString());

        this.save(tb);

    }
}




